#include "driverlib.h"
#include "uart_calc.h"
#include "Time_32.h"
#include "Time_A_PWM.h"
#include "MLX90614.h"
/* Standard Includes */
#include <stdint.h>
#include "stdio.h"
#include <stdbool.h>
#include "SEEKFREE_OLED.h"
void T32_INT1_IRQnHandler(void);
void Time_A_IRQnHandler(void);

void delay(int z)
{
	int x;
	for(;z>0;z--)
	for(x=123;x>0;x--);




}

	uint8 sendxu= 0;
float xu_temp;
uint8  display_xu[5] = {'a','d','f'};
int main(void)
{
	

	
	
	uart_init(9600);
	GPIO_setAsOutputPin(GPIO_PORT_P2,GPIO_PIN0);
	OLED_Init();
	IIC_init();

		OLED_P8x16Str(0,0,"jkh");
	GPIO_setAsInputPinWithPullUpResistor(	GPIO_PORT_P1,GPIO_PIN4);
	while(1)
	{
		
		xu_temp =MLX90614_Get_Temperature();
		xu_display_float(0,4,xu_temp,2);
	
		delay(5000);	
		GPIO_toggleOutputOnPin(GPIO_PORT_P2,GPIO_PIN0);
		delay(5000);	
		
	}

}
